package com.lly.songhigh.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.lly.songhigh.entity.Search;

import java.util.List;

/**
 * Created by dllo on 15/10/21.
 */
public class SearchGridViewAdapter extends BaseAdapter {

    private Context context;
    private List<Search.DataEntity> datas;

    public SearchGridViewAdapter(Context context, List<Search.DataEntity> datas) {
        this.context = context;
        this.datas = datas;
    }

    @Override
    public int getCount() {
        return datas.size();
    }

    @Override
    public Search.DataEntity getItem(int position) {
        return datas.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return null;
    }
}
